package w5;

public class Duck {
	private int size;

	public Duck() {
		this(10); // 调用另一个构造方法
	}
	
	public Duck(int size) {
		this.size = size;  // 区分局部和实例变量
	}
	
	public void info() {
		System.out.println("duck size = " + size);
	}

}
